package com.example.day01;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.ImageView;

import com.example.net.CacheUtil;

public class PicActivity extends AppCompatActivity {

    private ImageView pic;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pic);
        pic = (ImageView) findViewById(R.id.pic);
        CacheUtil.getInstance(this).setImageToView("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1605451784698&di=95330794c92aab6b6d5d9f247f4a6ee6&imgtype=0&src=http%3A%2F%2Fa3.att.hudong.com%2F55%2F22%2F20300000929429130630222900050.jpg",pic);
        CacheUtil.getInstance(this).getBitmapFromCache("timg?image&quality=80&size=b9999_10000&sec=1605451784698&di=95330794c92aab6b6d5d9f247f4a6ee6&imgtype=0&src=http%3A%2F%2Fa3.att.hudong.com%2F55%2F22%2F20300000929429130630222900050.jpg");



    }
}
